/**
 * 编辑-测量试验记录表js
 */
var vm = new Vue({
	el:'#dpLTE',
	data: {
		measurementTestRecord: {
			id: 0,
			feedCompanyName: "",
			powerSupplyStationName: "",
			creatTimeRub: "",
			serialNumber:""

		}
	},
	methods : {
		setForm: function() {
			$.SetForm({
				url: '../../measurement/test/record/info?_' + $.now(),
		    	param: vm.measurementTestRecord.id,
		    	success: function(data) {
					console.log("==================");
					console.log(data);
		    		vm.measurementTestRecord = data;
		    		console.log(vm.measurementTestRecord)
		    	}
			});
		},
		acceptClick: function() {
			if (!$('#form').Validform()) {
		        return false;
		    }
		    $.ConfirmForm({
		    	url: '../../measurement/test/record/update?_' + $.now(),
		    	param: vm.measurementTestRecord,
		    	success: function(data) {
		    		$.currentIframe().vm.load();
		    	}
		    });
		}
	}
})